
public class TestTranspareency {


    public static void main(String[] args) throws Exception {

        GKAbstractCource ywCourse = new LeafCource("语文", "150");
        GKAbstractCource sxCourse = new LeafCource("数学", "150");
        GKAbstractCource yyCourse = new LeafCource("英语", "150");

        GKAbstractCource wlCourse = new LeafCource("物理","110");
        GKAbstractCource hxCourse = new LeafCource("化学","100");
        GKAbstractCource swCourse = new LeafCource("生物","90");

        GKAbstractCource lzCource = new BranchCource("理综", 2);
        lzCource.addChild(wlCourse);
        lzCource.addChild(hxCourse);
        lzCource.addChild(swCourse);

        GKAbstractCource gkCourse = new BranchCource("理科高考",1);
        gkCourse.addChild(ywCourse);
        gkCourse.addChild(sxCourse);
        gkCourse.addChild(yyCourse);

        
        gkCourse.info();
        swCourse.addChild(ywCourse);


    }
}